const Objects = {
  isObject: (object) => {
    return object && typeof object === 'object';
  },
  isString: (object) => {
    return object && typeof object === 'string';
  },
  isArray: (object) => {
    return Objects.isObject(object) && object.length;
  },
  forEach: (object, callback: (key: string) => void) => {
    for (let key in object) {
      callback(key);
    }
  },
  isFunction: (func) => {
    return func && typeof func === 'function';
  }
}
export default Objects;
